import calendar
from datetime import date

def monthdelta(date,delta):
    m,y = (date.month + delta) % 12, date.year +